/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2019-12-31
 * Time: 9:46
 */
#ifndef PLANTROBOT_LOGINWIDGET_H
#define PLANTROBOT_LOGINWIDGET_H

#include <QtWidgets>
#include "../model/User.h"
#include "../dao/UserDao.h"
#include "../utils/MyTimeHelper.h"

namespace Ui {
    class LoginWidget;
}
class LoginWidget : public QWidget {
Q_OBJECT
public:
    LoginWidget(QWidget *parent = 0);

    ~LoginWidget();

private:
    Ui::LoginWidget *ui;
    User user;          //用于接收用户输入
    UserDao userDao;

    void setStyle(const QString &styleName);

    MyTimeHelper *myTime;

private slots:

    bool isLogin();


signals:
    //去往主界面
    void goMainForm();

};


#endif //PLANTROBOT_LOGINWIDGET_H
